home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / Nan.c < prev    next >
MacBinary  |  1995-08-13  |  2.0 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Nan.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Aug 13 19:51:21 1995, modified Sun Aug 13 19:51:21 1995, creator 'CWIE', type ASCII, 1399 bytes "Nan.c" , at 0x5f7 456 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-2K) default (weak)
16% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 4e 61 6e 2e 63 00 | 00 00 00 00 00 00 00 00 |..Nan.c.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 05 77 00 | 00 01 c8 ac 54 40 79 ac |......w.|....T@y.|
|00000060| 54 40 79 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |T@y.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5a 2f 00 00 |........|....Z/..|
|00000080| 2f 2a 0d 4e 61 6e 2e 63 | 0d 54 68 69 73 20 66 69 |/*.Nan.c|.This fi|
|00000090| 6c 65 20 64 65 63 6c 61 | 72 65 73 20 61 20 67 6c |le decla|res a gl|
|000000a0| 6f 62 61 6c 20 63 6f 6e | 73 74 61 6e 74 2c 20 4e |obal con|stant, N|
|000000b0| 61 6e 2c 20 74 68 61 74 | 20 72 65 70 72 65 73 65 |an, that| represe|
|000000c0| 6e 74 73 20 61 20 63 6f | 6e 73 74 20 64 6f 75 62 |nts a co|nst doub|
|000000d0| 6c 65 20 0d 77 69 74 68 | 20 74 68 65 20 76 61 6c |le .with| the val|
|000000e0| 75 65 20 6e 61 6e 28 22 | 32 31 22 29 2e 20 48 65 |ue nan("|21"). He|
|000000f0| 72 65 27 73 20 61 20 74 | 79 70 69 63 61 6c 20 75 |re's a t|ypical u|
|00000100| 73 65 3a 0d 09 78 3d 4e | 61 6e 3b 0d 22 4e 61 6e |se:..x=N|an;."Nan|
|00000110| 22 20 69 73 20 64 65 66 | 69 6e 65 64 20 69 6e 20 |" is def|ined in |
|00000120| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 2e 68 20 61 |VideoToo|lbox.h a|
|00000130| 73 20 2a 28 64 6f 75 62 | 6c 65 20 2a 29 5f 5f 4e |s *(doub|le *)__N|
|00000140| 41 4e 2e 20 54 68 65 20 | 76 69 72 74 75 65 20 6f |AN. The |virtue o|
|00000150| 66 20 74 68 69 73 0d 61 | 70 70 72 6f 61 63 68 2c |f this.a|pproach,|
|00000160| 20 72 61 74 68 65 72 20 | 74 68 61 6e 20 6a 75 73 | rather |than jus|
|00000170| 74 20 63 6f 6d 70 75 74 | 69 6e 67 20 61 20 4e 41 |t comput|ing a NA|
|00000180| 4e 2c 20 65 2e 67 2e 20 | 30 2e 30 2f 30 2e 30 2c |N, e.g. |0.0/0.0,|
|00000190| 20 69 73 20 74 68 61 74 | 20 69 74 27 73 20 66 61 | is that| it's fa|
|000001a0| 73 74 65 72 2e 0d 53 65 | 63 6f 6e 64 6c 79 2c 20 |ster..Se|condly, |
|000001b0| 74 68 65 72 65 27 73 20 | 62 75 67 20 69 6e 20 74 |there's |bug in t|
|000001c0| 68 65 20 54 48 49 4e 4b | 20 43 20 44 65 62 75 67 |he THINK| C Debug|
|000001d0| 67 65 72 20 28 76 65 72 | 73 69 6f 6e 73 20 36 2e |ger (ver|sions 6.|
|000001e0| 30 31 20 74 68 72 6f 75 | 67 68 20 37 2e 30 33 29 |01 throu|gh 7.03)|
|000001f0| 20 6f 6e 0d 74 68 65 20 | 50 6f 77 65 72 42 6f 6f | on.the |PowerBoo|
|00000200| 6b 20 31 37 30 20 74 68 | 61 74 20 63 61 75 73 65 |k 170 th|at cause|
|00000210| 73 20 69 74 20 74 6f 20 | 73 74 6f 70 20 77 69 74 |s it to |stop wit|
|00000220| 68 20 61 20 66 61 74 61 | 6c 20 65 72 72 6f 72 20 |h a fata|l error |
|00000230| 6d 65 73 73 61 67 65 20 | 77 68 65 6e 20 74 72 79 |message |when try|
|00000240| 69 6e 67 0d 74 6f 20 63 | 6f 6d 70 75 74 65 20 30 |ing.to c|ompute 0|
|00000250| 2e 30 2f 30 2e 30 20 77 | 68 69 6c 65 20 56 69 72 |.0/0.0 w|hile Vir|
|00000260| 74 75 61 6c 20 4d 65 6d | 6f 72 79 20 69 73 20 65 |tual Mem|ory is e|
|00000270| 6e 61 62 6c 65 64 2e 20 | 0d 0d 54 68 69 73 20 73 |nabled. |..This s|
|00000280| 63 68 65 6d 65 20 73 68 | 6f 75 6c 64 20 61 6c 73 |cheme sh|ould als|
|00000290| 6f 20 77 6f 72 6b 20 66 | 69 6e 65 20 61 73 20 6e |o work f|ine as n|
|000002a0| 61 74 69 76 65 20 63 6f | 64 65 20 6f 6e 20 74 68 |ative co|de on th|
|000002b0| 65 20 50 6f 77 65 72 50 | 43 2e 0d 0d 48 49 53 54 |e PowerP|C...HIST|
|000002c0| 4f 52 59 3a 0d 35 2f 39 | 34 09 64 67 70 20 77 72 |ORY:.5/9|4.dgp wr|
|000002d0| 6f 74 65 20 69 74 2e 0d | 37 2f 32 39 2f 39 34 20 |ote it..|7/29/94 |
|000002e0| 64 67 70 20 61 64 64 65 | 64 20 73 75 70 70 6f 72 |dgp adde|d suppor|
|000002f0| 74 20 66 6f 72 20 4d 65 | 74 72 6f 77 65 72 6b 73 |t for Me|trowerks|
|00000300| 20 43 6f 64 65 57 61 72 | 72 69 6f 72 20 43 20 63 | CodeWar|rior C c|
|00000310| 6f 6d 70 69 6c 65 72 2e | 0d 37 2f 33 31 2f 39 34 |ompiler.|.7/31/94|
|00000320| 09 64 67 70 20 63 68 61 | 6e 67 65 64 20 4e 61 4e |.dgp cha|nged NaN|
|00000330| 20 63 6f 64 65 20 66 72 | 6f 6d 20 34 20 74 6f 20 | code fr|om 4 to |
|00000340| 32 31 2e 0d 2a 2f 0d 23 | 64 65 66 69 6e 65 20 63 |21..*/.#|define c|
|00000350| 6f 64 65 20 32 31 09 2f | 2a 20 6d 65 61 6e 73 20 |ode 21./|* means |
|00000360| 22 61 74 74 65 6d 70 74 | 65 64 20 74 6f 20 63 72 |"attempt|ed to cr|
|00000370| 65 61 74 65 20 61 20 4e | 61 4e 20 77 69 74 68 20 |eate a N|aN with |
|00000380| 61 20 7a 65 72 6f 20 63 | 6f 64 65 22 20 2a 2f 0d |a zero c|ode" */.|
|00000390| 23 69 66 20 28 54 48 49 | 4e 4b 5f 43 20 7c 7c 20 |#if (THI|NK_C || |
|000003a0| 54 48 49 4e 4b 5f 43 50 | 4c 55 53 20 7c 7c 20 53 |THINK_CP|LUS || S|
|000003b0| 59 4d 41 4e 54 45 43 5f | 43 29 0d 09 23 69 66 20 |YMANTEC_|C)..#if |
|000003c0| 5f 5f 6f 70 74 69 6f 6e | 28 64 6f 75 62 6c 65 5f |__option|(double_|
|000003d0| 38 29 0d 09 09 63 6f 6e | 73 74 20 73 68 6f 72 74 |8)...con|st short|
|000003e0| 20 5f 5f 4e 41 4e 5b 5d | 3d 7b 20 30 78 37 46 46 | __NAN[]|={ 0x7FF|
|000003f0| 30 2c 20 63 6f 64 65 3c | 3c 35 2c 20 30 2c 20 30 |0, code<|<5, 0, 0|
|00000400| 20 7d 3b 0d 09 23 65 6c | 73 65 0d 09 09 23 69 66 | };..#el|se...#if|
|00000410| 20 21 5f 5f 6f 70 74 69 | 6f 6e 28 6e 61 74 69 76 | !__opti|on(nativ|
|00000420| 65 5f 66 70 29 0d 09 09 | 09 63 6f 6e 73 74 20 73 |e_fp)...|.const s|
|00000430| 68 6f 72 74 20 5f 5f 4e | 41 4e 5b 5d 3d 7b 20 30 |hort __N|AN[]={ 0|
|00000440| 78 37 46 46 46 2c 20 30 | 78 37 46 46 46 2c 20 63 |x7FFF, 0|x7FFF, c|
|00000450| 6f 64 65 2c 20 30 2c 20 | 30 2c 20 30 20 7d 3b 0d |ode, 0, |0, 0 };.|
|00000460| 09 09 23 65 6c 69 66 20 | 5f 5f 6f 70 74 69 6f 6e |..#elif |__option|
|00000470| 28 6d 63 36 38 38 38 31 | 29 0d 09 09 09 63 6f 6e |(mc68881|)....con|
|00000480| 73 74 20 73 68 6f 72 74 | 20 5f 5f 4e 41 4e 5b 5d |st short| __NAN[]|
|00000490| 3d 7b 20 30 78 37 46 46 | 46 2c 20 30 2c 20 63 6f |={ 0x7FF|F, 0, co|
|000004a0| 64 65 2c 20 30 2c 20 30 | 2c 20 30 20 7d 3b 0d 09 |de, 0, 0|, 0 };..|
|000004b0| 09 23 65 6c 73 65 0d 09 | 09 09 63 6f 6e 73 74 20 |.#else..|..const |
|000004c0| 73 68 6f 72 74 20 5f 5f | 4e 41 4e 5b 5d 3d 7b 20 |short __|NAN[]={ |
|000004d0| 30 78 37 46 46 46 2c 20 | 63 6f 64 65 2c 20 30 2c |0x7FFF, |code, 0,|
|000004e0| 20 30 2c 20 30 20 7d 3b | 0d 09 09 23 65 6e 64 69 | 0, 0 };|...#endi|
|000004f0| 66 0d 09 23 65 6e 64 69 | 66 0d 23 65 6e 64 69 66 |f..#endi|f.#endif|
|00000500| 0d 0d 23 69 66 20 5f 5f | 4d 57 45 52 4b 53 5f 5f |..#if __|MWERKS__|
|00000510| 0d 09 23 69 66 20 5f 5f | 69 65 65 65 64 6f 75 62 |..#if __|ieeedoub|
|00000520| 6c 65 73 5f 5f 0d 09 09 | 63 6f 6e 73 74 20 73 68 |les__...|const sh|
|00000530| 6f 72 74 20 5f 5f 4e 41 | 4e 5b 5d 3d 7b 20 30 78 |ort __NA|N[]={ 0x|
|00000540| 37 46 46 30 2c 20 63 6f | 64 65 3c 3c 35 2c 20 30 |7FF0, co|de<<5, 0|
|00000550| 2c 20 30 20 7d 3b 0d 09 | 23 65 6c 73 65 0d 09 09 |, 0 };..|#else...|
|00000560| 23 69 66 20 5f 5f 4d 43 | 36 38 38 38 31 5f 5f 0d |#if __MC|68881__.|
|00000570| 09 09 09 63 6f 6e 73 74 | 20 73 68 6f 72 74 20 5f |...const| short _|
|00000580| 5f 4e 41 4e 5b 5d 3d 7b | 20 30 78 37 46 46 46 2c |_NAN[]={| 0x7FFF,|
|00000590| 20 30 2c 20 63 6f 64 65 | 2c 20 30 2c 20 30 2c 20 | 0, code|, 0, 0, |
|000005a0| 30 20 7d 3b 0d 09 09 23 | 65 6c 73 65 0d 09 09 09 |0 };...#|else....|
|000005b0| 63 6f 6e 73 74 20 73 68 | 6f 72 74 20 5f 5f 4e 41 |const sh|ort __NA|
|000005c0| 4e 5b 5d 3d 7b 20 30 78 | 37 46 46 46 2c 20 63 6f |N[]={ 0x|7FFF, co|
|000005d0| 64 65 2c 20 30 2c 20 30 | 2c 20 30 20 7d 3b 0d 09 |de, 0, 0|, 0 };..|
|000005e0| 09 23 65 6e 64 69 66 0d | 09 23 65 6e 64 69 66 0d |.#endif.|.#endif.|
|000005f0| 23 65 6e 64 69 66 0d 00 | 00 00 00 00 00 00 00 00 |#endif..|........|
|00000600| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00000610| 69 6f 6e 20 72 65 71 75 | 69 72 65 73 20 25 73 15 |ion requ|ires %s.|
|00000620| 69 6e 76 61 6c 69 64 20 | 72 65 67 69 73 74 65 72 |invalid |register|
|00000630| 05 4e 61 6e 2e 63 02 00 | 00 00 54 45 58 54 43 57 |.Nan.c..|..TEXTCW|
|00000640| 49 45 01 00 00 14 03 c0 | 00 00 00 00 ad 88 00 00 |IE......|........|
|00000650| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 14 03 c0 |..TEXTCW|IE......|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 a9 d5 e5 33 00 00 | 05 77 00 00 01 c8 6c 20 |.....3..|.w....l |
|00000680| 23 69 6e 63 6c 75 64 65 | 20 66 69 6c 65 73 20 6e |#include| files n|
|00000690| 65 73 74 65 64 20 74 6f | 6f 20 64 65 65 70 6c 79 |ested to|o deeply|
|000006a0| 14 69 6c 6c 65 67 61 6c | 20 63 68 61 72 61 63 74 |.illegal| charact|
|000006b0| 65 72 20 25 73 0b 6d 69 | 73 73 69 6e 67 20 d4 3b |er %s.mi|ssing .;|
|000006c0| d5 16 75 6e 65 78 70 65 | 63 74 65 64 20 65 6e 64 |..unexpe|cted end|
|000006d0| 2d 6f 66 2d 66 69 6c 65 | 15 69 6e 63 6f 6d 70 6c |-of-file|.incompl|
|000006e0| 65 74 65 20 6d 61 63 72 | 6f 20 63 61 6c 6c 00 00 |ete macr|o call..|
|000006f0| 00 d3 d2 54 68 69 73 20 | 74 72 61 6e 73 6c 61 74 |...This |translat|
|00000700| 00 00 00 1e 00 2a 00 03 | 01 d1 01 ff 00 2a 00 03 |.....*..|.....*..|
|00000710| 01 6b 01 3a 00 00 00 00 | 00 00 00 00 00 00 00 00 |.k.:....|........|
|00000720| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 7d 00 18 |........|.....}..|
|00000750| 01 be 02 7e 00 7d 00 18 | 01 be 02 7e ac 54 0e 41 |...~.}..|...~.T.A|
|00000760| 00 00 02 c7 00 00 04 81 | 00 00 02 58 00 00 00 00 |........|...X....|
|00000770| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00000780| 00 76 00 00 00 52 00 3a | 1f a8 33 6a 00 00 00 1c |.v...R.:|..3j....|
|00000790| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|000007a0| 00 00 00 2a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |...*....|........|
|000007b0| 03 ed ff ff 00 00 00 22 | 00 00 00 00 03 f0 ff ff |......."|........|
|000007c0| 00 00 00 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+